package com.stack.common.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author llz
 * @date 2022/7/12 16:35
 * @description 生成 Map 工具类
 */
public class MapUtil {

    private Map<String, Object> params = new HashMap<String, Object>();

    public MapUtil buildMap(String key, Object value) {
        params.put(key, value);
        return this;
    }

    public Map<String,Object> getParamsMap(){
        return params;
    }

    public static MapUtil getInstance(){
        return new MapUtil();
    }

}
